'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/api/swiper',controller.swiper.getSwiper)    //获取轮播图数据
  router.get('/api/bgimg',controller.bgimg.getBgimg)       //获取背景图片数据
  router.get('/api/quote',controller.quote.getQuote)       //获取名人名言数据
  router.get('/api/myProduct',controller.myProduct.getProduct)       //获取个人作品数据
  router.get('/api/learningRecord',controller.learningRecord.getLearningRecord)     //获取学习记录数据
  router.get('/api/conclusion',controller.conclusion.getConclusionList) 
  
};
